package com.backend.demo1.models;

import java.util.Date;

public class NonMember extends User {

    private Long userId;
    private String sruNumber;
    private String address;
    private Date birthDate;
    private String phoneNumber;
    private String mobileNumber;
    private String zipCode;
    private String email;

    // 构造方法
    public NonMember() {
        
    }

    // 新增的构造方法，不包含 userId
    public NonMember(String sruNumber, String address, Date birthDate, String phoneNumber, String mobileNumber, String zipCode, String email) {
        this.sruNumber = sruNumber;
        this.address = address;
        this.birthDate = birthDate;
        this.phoneNumber = phoneNumber;
        this.mobileNumber = mobileNumber;
        this.zipCode = zipCode;
        this.email = email;
    }

    // Getters and Setters

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getSruNumber() {
        return sruNumber;
    }

    public void setSruNumber(String sruNumber) {
        this.sruNumber = sruNumber;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(Date birthDate) {
        this.birthDate = birthDate;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getMobileNumber() {
        return mobileNumber;
    }

    public void setMobileNumber(String mobileNumber) {
        this.mobileNumber = mobileNumber;
    }

    public String getZipCode() {
        return zipCode;
    }

    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}